package main

import (
	grpc2 "google.golang.org/grpc"
	"weekly2/rpc/consul"
	"weekly2/rpc/grpc"
	"weekly2/rpc/initiate"
	"weekly2/rpc/nacos"
	"weekly2/service/config"
	"weekly2/service/internal"
)

func main() {
	config.GetViperData()
	nacos.NewNacos()
	consul.ConSul()
	initiate.MysqlIit()
	initiate.RedisInit()
	nac := nacos.Config.Grpc
	grpc.UserGroup(nac.Host, nac.Port, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
